package com.example.yiwei.crm.view.frament.jdjyframent;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.view.activity.jdjycooractivity.JDJYSeacherCustomerActivity;
import com.example.yiwei.crm.view.activity.jdjycooractivity.JYJDSearchSHActivity;

/**
 * Created by DHN on 2017/7/13.
 */

public class JDJYQueryFrament extends Fragment {
    private LinearLayout ll1,ll2,ll3;
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootview=inflater.inflate(R.layout.jdquery_frament,container,false);
        ll1 = (LinearLayout) rootview.findViewById(R.id.jyjd_linear_work);
        ll2 = (LinearLayout) rootview.findViewById(R.id.jyjd_linear_sh);
        ll3 = (LinearLayout) rootview.findViewById(R.id.jyjd_linear_sh1);
        ll1.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View v) {
               Intent intent = new Intent(getActivity(), JDJYSeacherCustomerActivity.class);
               startActivity(intent);
           }
       });

        ll2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), JYJDSearchSHActivity.class);
                intent.putExtra("tag","ysh");
                startActivity(intent);
            }
        });
        ll3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), JYJDSearchSHActivity.class);
                intent.putExtra("tag","wsh");
                startActivity(intent);
            }
        });
        return rootview;
    }
}
